package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.comment.domain.TravelComment;
import cn.wolfcode.luowowo.comment.query.TravelCommentQuery;
import org.springframework.data.domain.Page;

/**
 * 游记评论服务
 */
public interface ITravelCommentService {

    /**
     * 游记评论添加
     * @param travelComment
     */
    TravelComment save(TravelComment travelComment);

    /**
     * 游记评论列表加分页
     * @param qo
     * @return
     */
    Page query(TravelCommentQuery qo);

    /**
     * 获取评论个数,用于设置floor,楼层
     * @param travelId
     * @return
     */
    Long getCount(Long travelId);
}
